﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Pansoft.Authority.Entities;

namespace Pansoft.HIME.Tools.AuthorityConfigFileEditor.Nodes
{
    abstract class AbstractAuthTreeNode : TreeNode
    {
        protected AbstractAuthTreeNode(AuthorityItem authItem)
        {
            Checked = false;
            AuthorityItem = authItem;
            Checked = authItem.Enable;
            Text = string.Format("[{0}]-[{1}]-{2}", authItem.Id, authItem.DatasetLevel, authItem.Name);
        }

        public AuthorityItem AuthorityItem { get; set; }
    }
}
